package com.itheima.service.impl;

import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author XCQ
 */
@Service("userService2")
public class UserServiceImpl2 implements UserService {
    @Value("${jdbc.userName}")
    private String userName;

    @Value("${jdbc.password}")
    private String password;
    @Override
    public void add() {
        System.out.println(userName+"==="+password);
    }

    @Override
    public String getName(String data) {
        System.out.println("name="+data);
        return data;
    }
}
